<?php

namespace Modules\Task\Listeners;

use Modules\Task\Events\Event;

class BustCache extends Listener
{
    /**
     * Handle the event.
     *
     * @param  \Modules\Task\Events\Event  $event
     */
    public function handle(Event $event)
    {
        $this->clear($event);
    }

    /**
     * Clear Cache.
     *
     * @param Event $event
     */
    protected function clear(Event $event)
    {
//        if ($event->task) {
//            $this->app['cache']->forget('task.task.'.$event->task->id);
//        }
//
//        $this->app['cache']->forget('task.index');
//        $this->app['cache']->forget('task.tasks.active');
    }
}
